<template>
  <div style="padding: 0 15px;" @click="toggleClick">
    <img :class="{'is-active':isActive}" class="hamburger" src="@/components/HeadHamburger/logo.svg" style="height:42px;margin:14px 20px 14px 5px;vertical-align: middle;">
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped>
/* .hamburger {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

.hamburger.is-active {
  transform: rotate(180deg);
} */
</style>
